package com.genokon.druid.controller;

import com.genokon.druid.service.HpoService;
import com.genokon.druid.service.OmiService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author by baichaoda
 * @date 2020/7/31 14:18
 */
@RestController
public class HpoController {
    @Resource
    private HpoService hpoService;
    @Resource
    private OmiService omiService;

    @GetMapping("/downloadHpo")
    public String downloadHop(String auth){
        return hpoService.downloadDatabase(auth);
    }

    @GetMapping("/downloadOmi")
    public String downloadOmi(String auth){
        return omiService.downloadDatabase(auth);
    }

    @GetMapping("/hello")
    public String home(String auth){
        return "hello!";
    }
}
